<%@ page language="java" isELIgnored="false"
	contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ include file="../common/header.jspf"%>
<link href="${ctx}/other/css/bootstrap-table.css" rel="stylesheet">
<link href="${ctx}/styles/bootstrap-datetimepicker.min.css"
	rel="stylesheet">
<link href="${ctx}/other/css/select2.css" rel="stylesheet">
<link href="${ctx}/other/css/select2.min.css" rel="stylesheet">
<%-- <link href="${ctx}/other/css/bootstrap-select.min.css" rel="stylesheet"> --%>
</head>
<body>
	<div class="container-fluid">
		<div class="row">
			<div class="panel-body">
				<html></html>
				<form action="../ProjectController/findByCondition.action"
					method="post">
					<div class="select-gril form-inline">
						<div class="col-sm-3 header-search-box col-left">
							<span>项目名称：</span>
							<div class="col-sm-8 form-group col-both">
								<input type="text" class="form-control" id="projectName"
									name="projectName">
							</div>
						</div>
						<div class="header-zl-right header-search-box">
							<div class="searchBtn" style="float: left; margin-right: 20px;">
								<a id="searchProject" class="hvr-icon-pulse col-11">查询</a>
							</div>
							<div class="reset" style="float: left;">
								<a class="btn btn-info" id="reset"
									style="width: 70px; height: 28px; padding-left: 10px; padding-top: 3px; color: #fff; font-weight: bold;"><span><i
										class="fa fa-refresh"></i></span> 重置 </a>
							</div>

						</div>
					</div>
				</form>
				<!-- 以上是查询界面   以下是列表界面 -->
			</div>
			<div class="container-main col-sm-12">
				<div class="adv-table">
					<div id="hidden-table-info_wrapper"
						class="dataTables_wrapper form-inline" role="grid">
						<div class="btn-group btn-group-justified">
						    <a class="btn btn-info" id="addProject"><span><i
									class="fa fa-plus-circle"></i></span>添加父项目</a> 
							<a class="btn btn-info"
								id="modifyProject"><span><i class="fa fa-pencil"></i></span>修改父项目</a>
						  
							<a class="btn btn-info" id="insertProject"><span><i
									class="fa fa-plus-circle"></i></span>添加子项目</a>
						   
							<a class="btn btn-info"
								id="modifyProjectForm"><span><i class="fa fa-pencil"></i></span>修改</a>
							<a class="btn btn-info" id="deleteProject"><span><i
									class="fa fa-trash-o"></i></span>删除</a>
					
						</div>

						<table id="Project"
							class="table table-bordered dataTable
							table-striped table-hover"
							data-toggle="table"
							data-url="../ProjectController/findByCondition.action"
							data-query-params="queryParams" data-click-to-select="true"
							data-unique-id="projectId" data-pagination="true"
							data-page-size="10" data-striped="true" data-show-columns="true"
							data-show-refresh="true" data-search="true">
							<thead>
								<tr role="row">
									<th class="sorting_disabled" data-checkbox="true"></th>
									<th class="sorting_disabled" data-field="projectId">ID</th>
									<th class="sorting_disabled" data-field="projectName">项目名称</th>
									<th class="sorting_disabled" data-field="extend1">描述</th>
									<th class="sorting_disabled" data-field="extend2" data-formatter="findTitleContent">题型</th>
                                    <th class="sorting_disabled" data-field="projectParentId">父项目ID</th>
								</tr>
							</thead>
						</table>

					</div>
				</div>
			</div>
		</div>

	</div>


				<div class="modal fade" id="addProjectTitle" tabindex="-1"
					role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"
					style="display: none;">
					<div class="modal-dialog">
						<div class="modal-content" style="margin-left:400px;width:500px;">
							<div class="modal-header">
								<button type="button" class="close" data-dismiss="modal">
									<span aria-hidden="true" style="color: red">×</span>
								</button>
								<h5 class="modal-title" id="change">编辑项目</h5>
							</div>
							<div id="ProjectHBox01">
								<form id="ProjectForm01" method="post"  style="width:480px;">
								<input type="hidden" name="projectId" id="projectId">
									<div class="form-group">
										<strong>项目名称:</strong>
										<input type="text" id="projectName2" name="projectName"
											 class="ipt nickname clean_c" style="margin-top: 20px; width:400px;" />
										<strong>描&nbsp;&nbsp;述:</strong>
										<input type="text" id="extend1" name="extend1"
											 class="ipt nickname clean_c" style="margin-top: 20px; width: 400px;" />
                                        <br><br>
										<strong>题目类型:</strong>
										<!-- class="selectpicker show-tick form-control" multiple data-live-search="false"-->
										<select class="js-example-basic-multiple" multiple="multiple" 
											id="TitleCombox" name="extend2" style="width: 400px;margin-left:-8px">
										</select>
										<br><br>
										<strong>&nbsp;父项目:</strong>
										<select id="ProjectCombox" name="projectParentId"  class="ipt nickname clean_c" style="width: 400px;">
										</select>
										
									</div>
							</div>
							<div class="modal-footer">

								<input value="保存"   class="submitBtn col-md-5" id="submitaddProject"
									type="button">
								
								<input value="保存"  class="submitBtn col-md-5" id="submitUpdateProject"
									type="button">
								</form>
							</div>
						</div>
					</div>
					<!-- modal content ends -->
				</div>


                <%@ include file="project_file.jsp"%>
				<%@ include file="../common/bottom.jspf"%>
				<!-- hDialog -->
				<script type="text/javascript" src="${ctx}/script/jquery.hDialog.js"></script>
				<script type="text/javascript" src="${ctx}/other/js/moment.min.js"></script>
				<script type="text/javascript"
					src="${ctx}/other/js/sweetalert.min.js"></script>
			<%-- 	<script type="text/javascript" src="${ctx}/other/js/bootstrap-select.min.js"></script>
				<script type="text/javascript" src="${ctx}/other/js/defaults-zh_CN.js"></script>
				<script type="text/javascript" src="${ctx}/other/js/defaults-zh_CN.min.js"></script> --%>
				<script type="text/javascript" src="${ctx}/other/js/select2.full.js"></script>
				<script type="text/javascript"
					src="${ctx}/other/js/select2.full.min.js"></script>
				<script type="text/javascript" src="${ctx}/other/js/select2.js"></script>
				<script type="text/javascript" src="${ctx}/other/js/select2.min.js"></script> 
				
				<script type="text/javascript" src="${ctx}/script/pm/project.js"></script>
</body>
